using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Caching;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.Memory;

namespace CKY.AgentPlatform.Caching
{
    /// <summary>
    /// 缓存模块
    /// </summary>
    [DependsOn(
        typeof(AbpCachingModule)
    )]
    public class AgentPlatformCachingModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddMemoryCache();
            context.Services.AddDistributedMemoryCache();
        }
    }
}